<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="客户基本信息">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                            	<form action="${request.getContextPath()}/admin/attestation/userAttestation.html" method="post">
                            	<div class="toolbor-module search">   
                                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                                </div>
                                <div class="toolbor-module search">
                                    
                                    	<#if param?exists>
						                    <#if param.get("vip_status")?exists><#assign vip_status=param.get("vip_status")></#if>
						                </#if>
						                <div style="height:22px;line-height:22px;float:left;">用户类型：</div>
				                        <div class="select-box" id="vip_status">
					                        <div class="tag-select">全部</div>
						                    <ul class="tag-options">
	                                            <li data-value="-1" class="open-selected">全部</li>
	                                            <li data-value="1" >vip会员</li>
	                                            <li data-value="0" >普通用户</li>
	                                        </ul>
					                    </div>
                                    </div>    
                                    <div class="toolbor-module search">    
                                        <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名"  class="search-value">
                                    </div>
                                    <div class="toolbor-module search">    
                                        <input type="text" name="realname" id="realname" value="请输入姓名" data-value="请输入姓名"  class="search-value">
                                    </div>
                                    </form>
                                </div>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <#if detailuserlist??>
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>ID</td>
                                            <td>用户名</td>
                                            <td>真实姓名</td>
                                            <td>实名认证</td>
                                            <td>邮箱认证</td>
                                            <td>手机认证</td>
                                            <td>是否VIP</td>
                                            <td>注册时间</td>
                                            <td>操作</td>
                                        </tr>
                                        <#list detailuserlist as obj>
                                            <tr class="s">
                                                <td>${obj.user_id?c}</td>
                                                <td>${obj.username!"-"}</td>
                                                <td>${obj.realname!"-"}</td>
                                                <td><#if obj.real_status??><#if obj.real_status==1>认证<#else><font
                                                        color="#FF0000">未认证</font></#if><#else><font color="#FF0000">未认证</font></#if>
                                                </td>
                                                <td><#if obj.email_status??><#if obj.email_status==1>认证<#else><font
                                                        color="#FF0000">未认证</font></#if><#else><font color="#FF0000">未认证</font></#if>
                                                </td>
                                                <td><#if obj.phone_status??><#if obj.phone_status==1>认证<#else><font
                                                        color="#FF0000">未认证</font></#if><#else><font color="#FF0000">未认证</font></#if>
                                                </td>
                                                <td><#if obj.vip_status??&&obj.vip_status==1>Vip会员<#else>普通会员</#if></td>
                                                <td><#if obj.vip_verify_time??>${dateformat(obj.addtime)!"-"}</#if></td>
                                                <td><a href="${request.getContextPath()}/admin/attestation/viewuserAttestation.html?user_id=${obj.user_id?c}" class="viewuserallinfo">查看全部资料</a></td>
                                            </tr>
                                        </#list>
                                    </table>
                                    <#else> 暂无信息 </#if>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container">
                                        <#import "../../common/page.html" as pager> <@pager.pagination page=page
                                            url="/admin/attestation/userAttestation.html" map=params style="style1" />

                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->

                                <script>
                                    var urls = '?search=true';
                                    function sousuo(){
                                        var sou = "";
                                        var username = $("#username").val();
                                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                            sou += "&username="+username;
                                        }
                                        var realname = $("#realname").val();
                                        if (realname!=null&&realname!=""&&realname!="undefine"&&realname!="请输入姓名"){
                                            sou += "&realname="+realname;
                                        }
                                        var vip_status = $("#vip_status").find(".open-selected").attr("data-value");
                                        if (vip_status!="" && vip_status!=null){
                            				sou += "&vip_status="+vip_status;
                            			}
                                        var url=urls+sou
                                        location.href=url;
                                    }
                                </script>
                            </div>

            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>

    </body>
</html>
<#include "../jsPage.html">
